﻿using Qlab.Core.Enums;
using Qlab.SharedKernel;
using Qlab.SharedKernel.Interfaces;
using System;
using System.ComponentModel.DataAnnotations;

namespace Qlab.Core.Entities
{
    public class SysUser : BaseEntity, IAggregateRoot
    {
        [Required]
        public string UserNo { get; set; }

        [Required]
        public string UserName { get; set; }

        [Required]
        public string Password { get; set; }

        public int DeptId { get; set; }

        public IsUsed IsUsed { get; set; }

        public string Remark { get; set; }

        public string RealName { get; set; }

        public int JobId { get; set; }

        public string SignUrl { get; set; }

        public Gender Gender { get; set; }

        public UserType UserType { get; set; }

        public DateTime EntryDate { get; set; }
    }
}